package com.example.springweb.model.entity;

import com.example.springweb.model.SearchPage;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Index;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(indexes = { @Index(name = "idx_category", columnList = "category") })
public class Product {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	// 类别
	private String category;
	private String productName;
	private Double productPrice;
	// 其他商品属性
	
}
